package net.oschina.app.pages;

import android.view.View;

import net.oschina.app.SoloWrap;

/**
 * Created by Aaron on 2017/10/29.
 */

public class PageMySettings {
    private SoloWrap soloWrap;

    public PageMySettings(SoloWrap soloWrap){
        this.soloWrap = soloWrap;
    }

    public View getLoginIcon(){
        return soloWrap.findById("net.oschina.app:id/iv_portrait");
    }

    public View getFavoritesLayout(){
        return soloWrap.findById("net.oschina.app:id/ly_favorite");
    }

    public View getSettingsBtn(){
        return soloWrap.findById("net.oschina.app:id/iv_logo_setting");
    }

    public View getMyMsgItem(){
        return soloWrap.findById("net.oschina.app:id/rl_message");
    }

    public View getMyBlogItem(){
        return soloWrap.findById("net.oschina.app:id/rl_blog");
    }

    public View getMyActivityItem(){
        return soloWrap.findById("net.oschina.app:id/rl_info_avtivities");
    }

    public View getMyTeamItem(){
        return soloWrap.findById("net.oschina.app:id/rl_team");
    }

    public void clickLoginIcon(){
        soloWrap.click(getLoginIcon());
    }

    public void clickSettingsBtn(){
        soloWrap.click(getSettingsBtn());
    }

    public void clickMyMsgItem(){
        soloWrap.click(getMyMsgItem());
    }

    public void clickMyBlogItem(){
        soloWrap.click(getMyBlogItem());
    }

    public void clickMyActivityItem(){
        soloWrap.click(getMyActivityItem());
    }

    public void clickMyTeamItem(){
        soloWrap.click(getMyTeamItem());
    }

    public void clickFavoritesLayout(){
        soloWrap.click(getFavoritesLayout());
    }

}
